home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_w / whatsin.zip / 12 < prev    next >
Text File  |  1992-06-21  |  1KB  |  58 lines

  1. mode4
  2. O10
  3. R2 0 638 333
  4. O11
  5. R6 3 634 330
  6. O10
  7. R10 6 630 327
  8. O11
  9. text/30 35 1 0 0
  10.     Bytes can also be used to
  11. represent instructions.  You could
  12. invent a code in which each of the
  13. 256 possible combinations of bits
  14. is a different instruction to the
  15. computer.  For instance, if 34 means
  16. put a red dot in the middle of the
  17. screen, and if 176 means move that
  18. dot to the left... You get the idea,
  19. that's programming. Of course there
  20. are more than 256 things you could
  21. have the computer do. Combinations
  22. of many bytes, each representing a
  23. simple instruction, can be used to
  24. build a complex instruction.
  25.    Programmers don't actually have
  26. to remember the numbers assigned to
  27. bytes. Their programming languages
  28. ~
  29. text/350 35
  30. themselves assign English-like
  31. words to the instructions
  32. contained in the bytes. Here
  33. is a sample from a programmer's
  34. file. This example is actually
  35. running right now. It's a
  36. part of What's In That Box:
  37. ~
  38. O10
  39. text/350 154 1 0 0
  40.   begin
  41.     cleardevice;
  42.     assign(outfile,'goto');
  43.     readfile;
  44.     u := readkey;
  45.     menu;
  46.   end; {procedure goto}
  47. ~
  48. O12
  49. text/339 262 1 0 0
  50.  (This pops up the goto screen.)
  51. ~
  52. O14
  53. R354 149 575 247
  54. mode4
  55. mode4
  56. O10
  57. L327 21 327 268
  58.